<?php
include(dirname(dirname(__FILE__))."/global.php");
$act = $_GET['act'];
$task = $_GET['task'];
if($act=="")	$act="index";
if($task=="")	$task = "index";
if(!is_file(MODEL_PATH.$act.'.class.php'))
{
	$controller='index';
	$action='index';
}
require(MODEL_PATH.'class/common.php');
require("model/".$act.'.class.php');
$conclass=$act.'_controller';
$actfunc=$task.'_action'; 
$views=new $conclass($phpyun,$db,$db_config[def],"admin");
if(!method_exists($views,$actfunc)){
	$views->DoException();
}
$views->$actfunc();
?>